Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: ConcurrentModificationException in SeaCreatureManager #2350

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

hannibal002
Copy link
Owner

What

Fix a ConcurrentModificationException in SeaCreatureManager.
Reported: https://discord.com/channels/997079228510117908/1273199562558935081

Stack Trace

SkyHanni 0.26.Beta.22: Caught an NoSuchElementException in FishingTimer at SeaCreatureFishEvent: null

Caused by java.util.NoSuchElementException: null
at com.google.common.cache.LocalCache$HashIterator.nextEntry(LocalCache.java:4343)
at com.google.common.cache.LocalCache$KeyIterator.next(LocalCache.java:4362)
at kotlin.collections.CollectionsKt___CollectionsKt.toSet(_Collections.kt:1347)
at SH.utils.TimeLimitedSet.toSet(TimeLimitedSet.kt:31)
at SH.utils.TimeLimitedSet.iterator(TimeLimitedSet.kt:34)
at SH.features.fishing.FishingTimer.handle(FishingTimer.kt:245)
at SH.features.fishing.FishingTimer.onSeaCreatureFish(FishingTimer.kt:122)
at SH.features.fishing.SeaCreatureManager.onChat(SeaCreatureManager.kt:53)
at SH.data.ChatManager.onChatReceive(ChatManager.kt:130)
at FML.common.eventhandler.EventBus.post(EventBus.java:140)

Changelog Fixes

  • Fixed an error during fishing. - hannibal2

@hannibal002 hannibal002 added the Bug Fix Bug fixes label Aug 15, 2024
@hannibal002 hannibal002 added this to the Version 0.26 milestone Aug 15, 2024
@hannibal002 hannibal002 merged commit 050e332 into beta Aug 16, 2024
11 checks passed
@hannibal002 hannibal002 deleted the fix-fishing-NoSuchElementException branch August 16, 2024 09:16
@github-actions github-actions bot removed the Bug Fix Bug fixes label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant